#include "ui_vfb.h"
#include "window/port.h"

void ui_draw_pixel(uint16_t x1, int16_t y1, ui_vfb_context_t *pcontext) {
  if (pcontext->f_color) {
    frame_buffer[x1 >> 3][y1] |= (1 << (x1 & 0x07));
  } else {
    frame_buffer[x1 >> 3][y1] &= (~(1 << (x1 & 0x07)));
  }
}

#if UI_CFG_HAS_LINE_FUNC > 0

void ui_draw_line(uint16_t x1, int16_t y1, uint16_t x2, uint16_t y2, ui_vfb_context_t *pcontext) {}

#endif

#if UI_CFG_HAS_FILL_FUNC > 0
void ui_fill_screen(ui_vfb_context_t *pcontext) {}
#endif
#if UI_CFG_HAS_CLEAR_FUNC > 0
void ui_clear_screen(ui_vfb_context_t *pcontext) {}
#endif
#if UI_CFG_HAS_FILL_RECT_FUNC > 0
void ui_fill_rect(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, ui_vfb_context_t *pcontext) {}
#endif